package ywpt.service.config;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.UnitInfo;

public interface UnitInfoService {

	public abstract UnitInfo getUnitInfoById(Long id);

	public abstract int getUnitInfoCountByCriteria(DetachedCriteria query);

	public abstract List<UnitInfo> getUnitInfos(DetachedCriteria query, int pageSize, int startIndex);



	public abstract List<UnitInfo> getUnitInfos(DetachedCriteria query);

	public abstract void saveUnitInfo(UnitInfo unitInfo);

	public abstract void updateUnitInfo(UnitInfo unitInfo);	

	public abstract void removeUnitInfo(Long id);
	
	public abstract int getUnitInfosCountByName(String unitName);
	
	public abstract List<UnitInfo> getUnitInfosByUnitName(String unitName, int start, int size);

	public abstract List<UnitInfo> getUnitInfos();
	
	public abstract List<UnitInfo> getUnitsByIds(String ids);
}
